package com.ouc.dataMange.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ouc.dataMange.mapper.SysMemoryDeviceMapper;
import com.ouc.dataMange.domain.SysMemoryDevice;
import com.ouc.dataMange.service.ISysMemoryDeviceService;

/**
 * memoryDeviceService业务层处理
 *
 * @author yuhao
 * @date 2025-07-14
 */
@Service
public class SysMemoryDeviceServiceImpl implements ISysMemoryDeviceService {
  @Autowired
  private SysMemoryDeviceMapper sysMemoryDeviceMapper;

  /**
   * 查询memoryDevice
   *
   * @param id memoryDevice主键
   * @return memoryDevice
   */
  @Override
  public SysMemoryDevice selectSysMemoryDeviceById(Integer id) {
    return sysMemoryDeviceMapper.selectSysMemoryDeviceById(id);
  }

  /**
   * 查询memoryDevice列表
   *
   * @param sysMemoryDevice memoryDevice
   * @return memoryDevice
   */
  @Override
  public List<SysMemoryDevice> selectSysMemoryDeviceList(SysMemoryDevice sysMemoryDevice) {
    return sysMemoryDeviceMapper.selectSysMemoryDeviceList(sysMemoryDevice);
  }

  /**
   * 新增memoryDevice
   *
   * @param sysMemoryDevice memoryDevice
   * @return 结果
   */
  @Override
  public int insertSysMemoryDevice(SysMemoryDevice sysMemoryDevice) {
    return sysMemoryDeviceMapper.insertSysMemoryDevice(sysMemoryDevice);
  }

  /**
   * 修改memoryDevice
   *
   * @param sysMemoryDevice memoryDevice
   * @return 结果
   */
  @Override
  public int updateSysMemoryDevice(SysMemoryDevice sysMemoryDevice) {
    return sysMemoryDeviceMapper.updateSysMemoryDevice(sysMemoryDevice);
  }

  /**
   * 批量删除memoryDevice
   *
   * @param ids 需要删除的memoryDevice主键
   * @return 结果
   */
  @Override
  public int deleteSysMemoryDeviceByIds(Integer[] ids) {
    return sysMemoryDeviceMapper.deleteSysMemoryDeviceByIds(ids);
  }

  /**
   * 删除memoryDevice信息
   *
   * @param id memoryDevice主键
   * @return 结果
   */
  @Override
  public int deleteSysMemoryDeviceById(Integer id) {
    return sysMemoryDeviceMapper.deleteSysMemoryDeviceById(id);
  }
}
